<div class="row">

	<ul class="nav nav-tabs">
		<li><a href="<?=site_url('home/view_admin');?>">Administrative Employees</a></li>
		<li class="active"><a href="<?=site_url('home/view_teaching');?>">Teaching Personnel</a></li>
	</ul>
	<div class="navbar">
	  <div class="navbar-inner">
		<a class="brand" href="#">Teaching Personnel</a>
		<ul class="nav">
		  <li class="active"><a href="#">View</a></li>
		  <li><a href="<?=site_url('home/add_teach');?>">Add Teaching Personnel</a></li>
		  <li><a href="#">Update Profile</a></li>
		</ul>
	  </div>
	</div>


	<table class="table table-striped table-bordered table-hover">
	<?=$system_message;?>	
		<thead>
			<tr>
				<td colspan="4">
					<a href="<?=site_url('p-teacher');?>" target="_blank" class="btn btn-mini"><i class="icon-print"></i> Print Teaching Employees Only</a>
					<a href="<?=site_url('p-all');?>" target="_blank" class="btn btn-mini"><i class="icon-print"></i> Print All</a>
				</td>
				<td colspan ="2">Educational Attainment</td>
				<td colspan="2">Years of Work Experience</td>
				<td colspan="2"></td>

			</tr>
			<tr>
				<td class="span6 bold">EMPLOYEE'S NAME</td>
				<td class="span1 bold">AGE</td>
				<td class="span1 bold">GENDER</td>
				<td class="span6 bold">baccalaureate</td>
				<td class="span6 bold">Masters/Doctorate</td>
				<td class="span6 bold">Employment Status</td>
				<td class="span1 bold">Teaching</td>
				<td class="span1 bold">Admin</td>
				<td class="span1 bold">Subjects handled</td>
				<td class="span6 bold">Licensure Exams Taken</td>
				<td class="span6"></td>
			</tr>
		</thead>
		<tbody>
			<?if(!empty($teach)):?>
				<? foreach($teach as $a):?>
				<tr>
					<?$l = _se($a->tp_id);?>
					<td><?=$a->firstname.' '.$a->middlename.' '.$a->lastname?></td>
					<td><?=$a->age;?></td>
					<td><?=$a->gender;?></td>
					<td><?=$a->baccalaureate;?></td>
					<td><?=$a->masters;?></td>
					<td><?=$a->employment_stat;?></td>
					<td><?=$a->work_exp_admin;?></td>
					<td><?=$a->work_exp_teaching;?></td>
					<td><?=$a->subjects_handled;?></td>
					<td><?=$a->licensure_exams_taken;?></td>
					<td>
						<a href="<?=site_url('home/edit_teach/?id='.$l->link.'&di='.$l->hash)?>" class="" title="Edit"><button class="btn btn-mini btn-primary" type="button"><i class=" icon-edit"></i></button></a><br>
						<a href="<?=site_url('home/del_teach/?id='.$l->link.'&di='.$l->hash)?>" class="" title="Delete"><button class="btn btn-mini btn-inverse" type="button"><i class="icon-remove icon-white"></i></button></a>
					</td>
				</tr>
				<?endforeach;?>
			<?else:?>
				<tr class="info">
					<td colspan="10">No Information available</td>
				</tr>
			<?endif;?>
		</tbody>
	</table>
</div>